package drexel.routes;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.spring.Main;

import drexel.services.RestService;

public class RestRoute extends RouteBuilder {
	
    private static final String REST_ENDPOINT_URI = 
    	"cxfrs://http://localhost:8085/drexel?resourceClasses=" +
    		"drexel.services.RestService";

    public static void main (String... args) throws Exception {
    	
        Main.main (args);
    }

    public void configure () {
    	
		from(REST_ENDPOINT_URI)
			.bean (RestService.class)
			.marshal("outboundObjectToJSON");
    }
}
